package com.ant.storage.service;

import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.CashbookDto;
import com.ant.storage.pojo.Cashbook;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author melon
 * @since 2023-11-09
 */
public interface ICashbookService extends IService<Cashbook> {

    PageInfo<Cashbook> queryList(CashbookDto dto);

    ResultVo saveCashbook(Cashbook cashbook);

    ResultVo saveBatchs(List<Cashbook> list);

    ResultVo balance();

    ResultVo automaticBalance();


    String getBalance(String id, HttpServletRequest request);

    Cashbook getBalanceId(Integer id);

    List<Cashbook> getBalanceIds(String ids);
}
